package com.appkubes.fintech.restful.config;

import com.appkubes.fintech.restful.config.aop.AutoLoginAuthInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Jiahong Chen
 * @date 2019/11/2
 */
@Configuration
public class AppConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AutoLoginAuthInterceptor()).addPathPatterns("/**");
    }
}
